<!--引入树 -->
<div class="tableStyle" >
  <div class="row">
    <span class="dirtree col-xs-4 col-md-3">
      <app-tree [institutionId]="treeURL" [treeTitle]="'字典管理'" (editData)="click($event)"></app-tree>
    </span>
     <!--引入查询-->
     <div class="search">
      <input class="form-control " type="text" [(ngModel)]="info" style="display:inline;width:90%" placeholder="请输入编码或管理内容进行搜索"
        #searchbox>
      <a (click)="query(searchbox.value)" class="btn btn-info">
        <span class="glyphicon glyphicon-search"></span>搜索
      </a>
    <div style="background:#41ABE9;text-align:center">{{dictionnaryName}}</div>
    <data-table (deletesEmit)="deleteDatas($event)" (deleteEmit)="deleteData($event)" (changepage)="changepage($event)" [isCheckBox]="isCheck"
    [buttonList]="btnList" (operat)="operatData($event,modal)" (exportEmit)="export($event)" [title]="title" [page]="page"
    [addButton]="btnAdd" [deleteButton]="btnDelete" [importButton]="btnImport" [editButton]="btnEdit" (editData)="edit($event,modal)"
    [exportButton]="btnExport" [total]="total" [data]="data" [arr]="arrbutes" [buttonstyle]="btnstyle" [sizeList]="sizeList"
    [paging]="paging" (importEmit)="import($event)" [fileUrl]="fileUrl" [pageSize]="pageSize" (addOpen)="open($event,modal)"></data-table>
  </div>
  </div>
  <!--添加操作-->
  <div #modal class="modal-dialog" (click)="draggable()" style="visibility:hidden;position:absolute;left:30%;top:20%; height:auto">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" (click)="close(modal)">×
        </button>
        <h4 class="modal-title">
          {{property}}字典管理
        </h4>
      </div>
      <div class="modal-body">
        <form role="form" class="form-horizontal" #form="ngForm">
          <!-- <div class="form-group"> -->
            <!-- <label class="col-sm-3 control-label">编码：</label>
            <div class="col-sm-9">
              <input type="text" class="form-control" name="dictionaryCode" [(ngModel)]="dicmodel.typeCode">
            </div>
          </div> -->

          <div class="form-group">
            <label class="col-sm-3 control-label">管理内容：</label>
            <div class="col-sm-9">
              <input type="text" class="form-control" name="dictionaryName" [(ngModel)]="dicmodel.dictName">
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-9">
              <input type="textarea" class="form-control" name="remark" rows="5" cols="57" [(ngModel)]="dicmodel.remark">
            </div>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary" (click)="add(modal,form.value)">
          确认
        </button>
        <button type="button" #closebtn class="btn btn-default" data-dismiss="modal" (click)="close(modal)" >取消</button>
  
      </div>
    </div>
  </div>
  </div>
  <p-dialog header="提示" [(visible)]="display" modal="modal" width="400" [responsive]="true">
    <p style="text-align:center">{{message}}</p>
    <p-footer>
      <button type="button" pButton  (click)="display=false" label="确定"></button>
  </p-footer>
</p-dialog>
<p-growl [(value)]="msgs"></p-growl>
<p-confirmDialog header="提示" icon="fa fa-question-circle" width="425"></p-confirmDialog>
